package com.singzi.javaSenior.annotationTest;

import javax.xml.bind.Element;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface MyAnnotation {
    int a() default 0;
    int b() default 0;

}
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD,ElementType.FIELD})
@interface SingleTest{
    int value() default 1;
}

@interface Test1{
    int value() default 0;
    int a() default 0;
}